<?php

namespace adminmatrix\mulitapp;
use adminmatrix\mulitapp\command\Build;
class Service extends \think\Service
{
    public function boot(): void
    {
        $this->app->event->listen('HttpRun' , function (){
            $this->app->middleware->add(MulitiApp::class);
        });

        $this->commands([
            'build' =>  Build::class,
        ]);
    }
}